package com.zhsj.OkeHomeConsumption.ui.activity.wallet;

import android.os.Handler;
import android.os.Message;
import android.widget.Toast;

import com.hjq.base.BaseDialog;
import com.zhsj.OkeHomeConsumption.common.MyApplication;
import com.zhsj.OkeHomeConsumption.other.TimeChecker;

/** 
* @ClassName: TimeOutHandler 
* @Description: TODO 计时处理器
* @author zhangpeisen
* @date 2016年9月13日 下午3:33:34 
*/
public class TimeOutHandler {

	public static ProgressDrawableAlertDialog pDialogUtils = null;

	public static Handler timeOutHandler = new Handler() {
		public void handleMessage(Message msg) {
			switch (msg.what) {
			case TimeChecker.TIME_OUT:

				if (pDialogUtils != null) {
					pDialogUtils.dismiss();
					pDialogUtils = null;
				}
				Toast.makeText(MyApplication.getContext(), "网络状态弱，请重试", Toast.LENGTH_SHORT).show();
				break;
			default:
				break;
			}

		};
	};

}
